package com.pinxixi.search.client;

import com.pinxixi.framework.client.PxxServiceList;
import com.pinxixi.framework.domain.category.Category;
import com.pinxixi.framework.model.response.QueryResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(PxxServiceList.PINXIXI_SERVICE_CATEGORY)
public interface CategoryApiClient {

    @GetMapping("/category/findByName")
    QueryResponseResult<Category> findByName(@RequestParam String name);

}
